#include <stdio.h>
#include <windows.h>
#include <stdbool.h>
#include "game.h"

extern int checkerboard[3][3];
extern int type_checkboard[3][3];
extern int step;
extern int result;
extern bool IsKeepHistory;

void test_setcheckerborad(int x,int y,int c){
    checkerboard[x][y] = 1;
    type_checkboard[x][y] = c;
}

void test(){
  /*   IsKeepHistory = true;
    initialize();
    test_setcheckerborad(1,1,0);
    test_setcheckerborad(2,2,1);
    test_setcheckerborad(2,0,0);
    test_setcheckerborad(0,0,1);
    test_setcheckerborad(0,2,0);
    step = 5;
    printf("%d",JudgeDetermin()); */
}


int main(int argc, char const *argv[]){
    int answer = 0;
    print_starttips();
    ask:
    scanf("%d", &answer);
    switch (answer)
    {
    case 1:
        printf("game will start\n");
        Sleep(1000);
        system("cls");
        game();
        break;
    case 0:
        printf("exited\n");
        break;
    default:
        printf("error,please enter 1 or 2\n");
        goto ask;
    }
    system("pause");
    return 0;
}

